package com.spring.beans.factory.config;

import com.spring.beans.BeansException;

/**
 * @Description: 用于修改实例化后的bean的修改拓展点
 * @Author: Simon
 */
public interface BeanPostProcessor {
    //在bean执行初始化方法之前执行此方法
    Object postProcessBeforeInitialization(Object bean,String beanName)throws BeansException;

    //在bean执行初始化方法之后执行此方法
    Object postProcessAfterInitialization(Object bean,String beanName)throws BeansException;
}
